/*
 * Description: 系统用户调用后台接口JS
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Dongxu.Ni
 * Date: 2020/03/22 02:33
 */

import { httpPost } from '../../utils/axios-utils'

export function userLogin(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/login', obj, authConfig)
}

export function userLogout(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/logout', obj, authConfig)
}

export function userQueryBySession(authConfig) {
  return httpPost('/smart-cost/sys/user/queryBySession', null, authConfig)
}

export function userListAllSimple(authConfig) {
  return httpPost('/smart-cost/sys/user/listAllSimple', null, authConfig)
}

export function userEditPersonal(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/editPersonal', obj, authConfig)
}

export function userChangePassword(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/changePassword', obj, authConfig)
}

export function userPageListSubordinate(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/pageListSubordinate', obj, authConfig)
}

export function userAdd(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/add', obj, authConfig)
}

export function userEdit(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/edit', obj, authConfig)
}

export function userDelete(obj, authConfig) {
  return httpPost('/smart-cost/sys/user/delete', obj, authConfig)
}
// 查找FD显示列数据
export function userOperationList(obj, authConfig) {
  return httpPost('/smart-cost/sys/operation/view', obj, authConfig)
}
// 修改FD显示列数据
export function editUserOperationList(obj, authConfig) {
  return httpPost('/smart-cost/sys/operation/edit', obj, authConfig)
}
